package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author: 汪腾伟
 * @date: 2020/6/3
 * @desrcption: 特殊符号枚举
 * @version:1.0
 */
@Getter
public enum SpecialSymbolEnum {

    /**
     * @符号
     */
    SPECIAL_SYMBOL_DEFAULT(0,"enum.specialsymbolenum.name.special_symbol_default"),
    SPECIAL_SYMBOL_ONE(1,"@");

    /**
     * 代表的特殊符号
     */
    private Integer code;

    /**
     * 代表的特殊符号的名称
     */
    private String name;

    SpecialSymbolEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public  Integer getCode() {
        return code;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }

}
